<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h2 @click="changeColor()" :class="{active:isActive,line :isLine}">{{message}}</h2>
		</div>
		<script type="text/javascript">
			const app = new Vue({
				el: '#app',
				data: {
					message: 'vueJs',
					isActive: true,
					isLine : false,
					
				},
				methods: {
					changeColor: function(){
						this.isActive = !this.isActive
						this.isLine = !this.isLine
					},
				}
			})
		</script>
		<style type="text/css">
			.active {
				color: aqua;
			}
			.line {
				color: chocolate;
			}
		</style>
	</body>
</html>
